<?php 
include("safeout.php");
$result=mysql_query("select count(*) from ph_user");
$row=mysql_fetch_array($result);
$jhs = (int)$row[0];

$resulta=mysql_query("select count(*) from ph_order");
$rowa=mysql_fetch_array($resulta);
$xss = (int)$rowa[0];

$resultb=mysql_query("select sum(balance) as ze from ph_user");
$rowb=mysql_fetch_array($resultb);
$ze = $rowb["ze"];

$resultc=mysql_query("select sum(top_up) as zcze from ph_user");
$rowc=mysql_fetch_array($resultc);
$zcze = $rowc["zcze"];
?> 
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
<title>APP推广系统-系统设置</title>
<link href="bootstrap/css/bootstrap.min.css" title="" rel="stylesheet" />
<link href="css/mcommon.css" rel="stylesheet" title="" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css"  />
<link rel="shortcut icon" href="/logo.ico" />
<link rel="stylesheet" href="edit/themes/default/default.css" />
	<link rel="stylesheet" href="edit/plugins/code/prettify.css" />
	<script charset="utf-8" src="edit/kindeditor.js"></script>
	<script charset="utf-8" src="edit/lang/zh_CN.js"></script>
	<script charset="utf-8" src="edit/plugins/code/prettify.js"></script>
	<script>
		KindEditor.ready(function(K) {
			var editor1 = K.create('textarea[name="mailcontent"]', {
				cssPath : 'edit/plugins/code/prettify.css',
				uploadJson : 'edit/php/upload_json.php',
				fileManagerJson : 'edit/php/file_manager_json.php',
				allowFileManager : true,
				afterBlur: function(){this.sync();}
			});
			prettyPrint();
		});
	</script>
</head>

<body>
<!--顶部-->
<?php include("top.php");?> 
<!--顶部结束--->
<!--主体部分-->
<div class="down-main">
	<!--左侧部分-->
  <?php include("left.php");?> 
  <!--左侧部分结束-->
  <!--右侧部分-->
  <div class="right-product right-full">
  	<!--右侧内容部分-->
    <div class="container-fluid right-product-con">
    	<div class="mianbaoxie"><i class="glyphicon-folder-open glyphicon"></i>
    		<span>管理中心</span>&gt;<span class="dangqian">系统设置</span></div>
      <div class="container-con">
      		<!--表格-->
      		<div class="tableCon">
			<div class="tableCon-tit clear">系统设置</div>
	      		<div class="tableCon-content">
				<table width="98%" border="0" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC" class="wenzi">
      <tr>
        <td bgcolor="#F7F7F7" width="10%"><div align="right">当前用户数：</div></td>
        <td height="25" bgcolor="#F7F7F7"><div align="left">
        <?php echo $jhs;?>
        </div></td>
      </tr>
      <tr>
        <td bgcolor="#F7F7F7"><div align="right">当前订单数：</div></td>
        <td height="25" bgcolor="#F7F7F7"><div align="left"><?php echo $xss;?></div></td>
      </tr>
      <tr>
        <td bgcolor="#F7F7F7"><div align="right">当前总余额：</div></td>
        <td height="25" bgcolor="#F7F7F7"><div align="left"><?php echo $ze;?></div></td>
      </tr>
      <tr>
        <td bgcolor="#F7F7F7"><div align="right">当前总充值金额：</div></td>
        <td height="25" bgcolor="#F7F7F7"><div align="left"><?php echo $zcze;?></div></td>
      </tr>
  </table>
	      		</div>
	      	</div>
	      	<!--表格结束--->
      	</div>
      </div>
  </div>
	  <!--右侧内容部分结束-->
  </div>
  <!--右侧部分结束-->
</div>
<!--主体部分结束-->
<script src="js/jquery-1.11.1.min.js" type="text/javascript"></script>
<script src="bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="js/mcommon.js"></script>
</body>
</html>
